﻿using BCEntity.TMS.DisableArea;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace BCData.TMS.DisableArea
{
    /// <summary>
    /// 禁止装卸货区域
    /// </summary>
    public interface IDisableAreaData
    {
        /// <summary>
        /// 获取禁卸货区域
        /// </summary>
        /// <param name="provinceId">省份编码</param>
        /// <param name="communityId">城市编码</param>
        /// <returns></returns>
        IEnumerable<DisableAreaEntity> GetDisableAreaInfo(string provinceId, string communityId);
        /// <summary>
        /// 新增禁卸货区域
        /// </summary>
        /// <param name="entity">禁止装卸货区域信息</param>
        /// <returns></returns>
        Task<DisableAreaEntity> AddDisableArea(DisableAreaEntity entity);
        /// <summary>
        /// 更新禁止装卸货区域
        /// </summary>
        /// <param name="entity">禁止装卸货区域信息</param>
        /// <returns></returns>
        Task<DisableAreaEntity> UpdateDisableArea(DisableAreaEntity entity);
        /// <summary>
        /// 删除禁卸货区域信息
        /// </summary>
        /// <param name="DisableAreaId">禁止装卸货区域Id</param>
        /// <returns></returns>
        bool Delete(long DisableAreaId);
    }
}
